package Class_03_22;

public class ATM {
    private int id;
    private double balance;

    public int getId() {
        return id;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public ATM(int id, double balance) {
        this.id = id;
        this.balance = balance;
    }

    public ATM() {
    }

    public void save(int save){
        this.balance  = this.balance + save;
    }
    public void cost(int cost){
        this.balance = this.balance + cost;
    }
}
